#include<iostream>
using namespace std;
int main()
{
	const int n = 5;
	int a[n], i, temp;
	cout << "enter array a:" << endl;
	for (i = 0; i < n; i++)
		cin >> a[i];
	cout << "array a:" << endl;
	for (i = 0; i < n; i++)
		cout << a[i] << " ";
	for (i = 0; i < n/2; i++)
	{
		temp = a[i];
		a[i] = a[n - 1 - i];
		a[n - i - 1] = temp;
	}
	cout << endl << "Now,array a:" << endl;
	for (i = 0; i < n; i++)
		cout << a[i] << " ";
	cout << endl;
	return 0;
}